package com.ruoyi.file.controller;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

@RestController
@RequestMapping("/updateFile")
public class FileController extends BaseController {
    @PostMapping()
    public AjaxResult updateFile(@RequestParam("image") MultipartFile multipartFile) {
//        System.out.println(file.getOriginalFilename());
        if (multipartFile.isEmpty()){
            return AjaxResult.error("图片为空");
        }
        return AjaxResult.success();
    }
}
